home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / util / wb / RunBar31.lha / RunBar / Install < prev    next >
Text File  |  1996-11-24  |  6KB  |  282 lines

  1. ;;;;
  2. ;;;;
  3. ;;;; Install_RB - RunBar installation script for Installer
  4. ;;;;
  5. ;;;; Copyright © 1996 Sergej Kravchenko
  6. ;;;;                  All Right reserved.
  7. ;;;;                  email dlife@pub.osf.lt
  8. ;;;;
  9. ;;;;     Installer and Installer project icon
  10. ;;;;     (c) Copyright 1991-93 Commodore-Amiga, Inc.  All Rights Reserved.
  11. ;;;;     Reproduced and distributed under license from Commodore.
  12. ;;;;
  13. ;;;;     INSTALLER SOFTWARE IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE;
  14. ;;;;     NO WARRANTIES ARE MADE.  ALL USE IS AT YOUR OWN RISK.  NO LIABILITY
  15. ;;;;     OR RESPONSIBILITY IS ASSUMED.
  16. ;;;;
  17. (complete 0)
  18.  
  19.  
  20. (set #welcome           (cat "Welcome to the RunBar 3.1 installation\n\nThis program is shareware\nPlease register\n\n\n\n© 1996 Sergej Kravchenko\nemail: dlife@pub.osf.lt"))
  21. (set #dir-choice        (cat "Select the directory where copy guide and Images." ))
  22. (set #dir-choic         (cat "Select the directory where Guide files will be copyed." ))
  23. (set #dir-ch            (cat "Select WBStartup directory."))
  24. (set #copy              (cat "Copying RunBar "))
  25. (set #copy-guide        (cat "Copying Guide"))
  26. (set #copy-u            (cat "Copying Utils"))
  27. (set #copy-unin         (cat "Copying Images"))
  28. (set #copy-p            (cat "Copying Prefs"))
  29. (set #copy-key          (cat "Copying Library"))
  30. (set #msg  (cat "!!!!!!!!!ATTENTION!!!!!!!!!\n\nWhen program run, no window appears\non screen.To activate window\nmove mouse pointer to bottom of\nworkbench screen or\npress HotKey (default F1).\n\nReboot computer now to run program."))
  31. (set #msg1 (cat "!!!!!!!!!ATTENTION!!!!!!!!!\n\nInfo for all coders and programmers\nyou can find in guide.\n\nPlease READ this!!!!!!!"))
  32. (set #copy-dev          (cat "Copying SDK"))
  33. ;=============================================================================
  34. (message #welcome)
  35. (welcome)
  36.  
  37.  
  38. ;========================================================================
  39. ;
  40. ; Select the RunBar directory
  41. ;
  42. (complete 0)
  43.  
  44. (if (> (exists ("SYS:WBStartup/RunBar")) 0)
  45.     (delete "SYS:WBStartup/RunBar")
  46. )
  47.  
  48. (if (> (exists ("SYS:WBStartup/RunBar.info")) 0)
  49.     (delete "SYS:WBStartup/RunBar.info")
  50. )
  51.  
  52. (procedure towbs
  53. (copyfiles
  54.    (prompt #copy)
  55.    (source "RunBar")
  56.    (help   @copyfiles-help)
  57.    (infos)
  58.    (dest "SYS:WBStartup")
  59. )
  60. (copyfiles
  61.    (prompt #copy)
  62.    (source "CpuControl")
  63.    (help   @copyfiles-help)
  64.    (infos)
  65.    (dest "SYS:WBStartup")
  66. )
  67. (copyfiles
  68.    (prompt #copy)
  69.    (source "FilterControl")
  70.    (help   @copyfiles-help)
  71.    (infos)
  72.    (dest "SYS:WBStartup")
  73. )
  74. )
  75.  
  76. (procedure toother
  77. (set NTdir
  78.    ( askdir
  79.       ( prompt #dir-ch )
  80.       (help "")
  81.       (default "SYS:WBStartup")
  82.       (newpath)
  83.    )
  84. )
  85. (copyfiles
  86.    (prompt #copy)
  87.    (source "RunBar")
  88.    (help   @copyfiles-help)
  89.    (infos)
  90.    (dest NTdir)
  91. )
  92. (copyfiles
  93.    (prompt #copy)
  94.    (source "CpuControl")
  95.    (help   @copyfiles-help)
  96.    (infos)
  97.    (dest NTdir)
  98. )
  99. (copyfiles
  100.    (prompt #copy)
  101.    (source "FilterControl")
  102.    (help   @copyfiles-help)
  103.    (infos)
  104.    (dest NTdir)
  105. )
  106. )
  107.  
  108. (complete 10)
  109. (set choice
  110.      (askchoice
  111.       (prompt "Slect one of following:")
  112.       (help "")
  113.       (choices
  114.       "Standard WBStartup" ; 0
  115.       "WBStartup+ or other" ; 1)
  116.       (default 0))))
  117. (select choice
  118.         (towbs)
  119.         (toother))
  120.  
  121. (complete 20)
  122. (set NTdir
  123.    ( askdir
  124.       ( prompt #dir-choic )
  125.       (help "")
  126.       (default "sys:")
  127.       (newpath)
  128.    )
  129. )
  130. ;----------------
  131. (if
  132.    (askbool
  133.       (prompt "Should I create a new directory in\n" @default-dest "?")
  134.       (help "Yes = install RunBar here.\nNo  = install RunBar in here/RunBar")
  135.       (default 0)
  136.    )
  137.    (set NTdir
  138.       (tackon NTdir "RunBar")
  139.    )
  140. )
  141.  
  142. (set FileThere
  143.    (exists NTdir
  144.       (noreq)
  145.    )
  146. )
  147.  
  148. (if
  149.    (= FileThere 1)
  150.    (abort NTdir "\nis a file. I can't install RunBar here.")
  151. )
  152.  
  153. (if
  154.    (= FileThere 0)
  155.    ((makedir NTdir)
  156.    
  157.    (copyfiles
  158.    (prompt #copy-guide)
  159.    (source "Icons/RunBar.info")
  160.    (dest (tackon NTdir "/"))
  161. )   
  162.    )
  163. )
  164.  
  165.  
  166. (complete 30)
  167. (copyfiles
  168.    (prompt #copy-guide)
  169.    (source "RunBar.guide")
  170.    (help   @copyfiles-help)
  171.    (infos)
  172.    (dest NTdir)
  173. )
  174.  
  175. (complete 30)
  176. (copyfiles
  177.    (prompt #copy-unin)
  178.    (source "Images.iff")
  179.    (help   @copyfiles-help)
  180.    (infos)
  181.    (dest NTdir)
  182. )
  183. (makedir (tackon NTdir "Develop"))
  184. (copyfiles
  185.    (prompt #copy-dev)
  186.    (source "Develop/")
  187.    (help   @copyfiles-help)
  188.    (infos)
  189.    (all)
  190.    (dest (tackon NTdir "Develop"))
  191. )
  192. (complete 40)
  193. (copylib
  194.    (prompt "Updating wbstart.library")
  195.    (help "This action will install wbstart.library on your HD.")
  196.    (source "Libs/wbstart.library")
  197.    (dest "Libs:")
  198.    (confirm)
  199. )
  200. (copylib
  201.    (prompt "Updating RunBar.library")
  202.    (help "This action will install RunBar.library on your HD.")
  203.    (source "Libs/RunBar.library")
  204.    (dest "Libs:")
  205.    (confirm)
  206. )
  207. (complete 50)
  208. (copylib
  209.    (prompt #copy-key)
  210.    (source "L/WBStart-Handler")
  211.    (help   @copyfiles-help)
  212.    (dest "L:")
  213.    (confirm)
  214. )
  215. (complete 60)
  216. (copyfiles
  217.    (prompt #copy-u)
  218.    (source "Utils")
  219.    (help   @copyfiles-help)
  220.    (infos)
  221.    (dest "SYS:Utilities")
  222.    (all)
  223. )
  224. (complete 70)
  225. (copyfiles
  226.    (prompt #copy-p)
  227.    (source "RunBarPrefs")
  228.    (help   @copyfiles-help)
  229.    (infos)
  230.    (dest "SYS:Prefs")
  231. )
  232. (complete 80)
  233. (set Images
  234.    (exists "ENVARC:RunBar"
  235.       (noreq)
  236.    )
  237. )
  238. (set Image1 0)
  239. (if
  240.    (= Images 0)
  241. (copyfiles
  242.    (prompt #copy-unin)
  243.    (source "Images/")
  244.    (help   @copyfiles-help)
  245.    (infos)
  246.    (all)
  247.    (dest "ENVARC:RunBar")
  248. )
  249. )
  250. ;------------
  251. (if (= Images 2)
  252. (if
  253.    (askbool
  254.       (prompt "Replace Images")
  255.       (help "Yes = Replace.\nNo  = No")
  256.       (default 0)
  257.    )
  258.    (set Images1 1)
  259. )
  260. )
  261. (if
  262.    (= Images1 1)
  263. (copyfiles
  264.    (prompt #copy-unin)
  265.    (source "Images/")
  266.    (help   @copyfiles-help)
  267.    (infos)
  268.    (all)
  269.    (dest "ENVARC:RunBar")
  270. )
  271. )
  272. (complete 85)
  273. (message #msg)
  274. (message #msg1)
  275. (complete 90)
  276. (run "SYS:Prefs/RunBarPrefs"
  277. (complete 100)
  278.  
  279. (exit)
  280.  
  281.